﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Demo1.aspx.cs" Inherits="TestSuiteExtNET.Demo1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript">
        var nodesLoad = function (store, operation, options) {
            //alert('operation: ' + operation);

            var node = operation.node;

            //alert("node id: " + node.getId());

            App.direct.NodesLoad(node.getId(), {
                success: function (result) {
                    node.set('loading', false);
                    node.set('loaded', true);
                    var data = Ext.decode(result);
                    node.appendChild(data, undefined, true);
                    node.expand();
                },

                failure: function (errorMsg) {
                    Ext.Msg.alert('Failure333', errorMsg);
                }
            });

            return false;
        };
     </script>
     <script type="text/javascript">
         var nodeClicked = function (store, operation, options) {
             //alert('operation: ' + operation);
             //alert("node id: " + operation.data.id);
             
             var data = operation.data;
             App.direct.NodeClicked(data.id);

             return false;
         };
    </script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%--<ext:ResourceManager ID="ResourceManager1" runat="server" Theme="Gray" />--%>

    <%--<div class="main">--%>
<%--    <ext:Viewport ID="Viewport1" runat="server" Layout="FitLayout" Resizable="true">
        <Items>
            <ext:Panel Region="North" Split="true" Title="North" Height="75" Collapsible="true" runat="server" />
            <ext:Panel Region="West" Layout="AccordionLayout" Split="true" Title="Contesti" Width="150" Collapsible="true" runat="server" ID="rContesti" />
            <ext:Panel ID="rDettagli" runat="server" Region="Center" Title="Dettagli" >
            </ext:Panel>
            <ext:Panel Region="East" Split="true" Title="East" Width="150" Collapsible="true" runat="server" />
            <ext:Panel Region="South" Split="true" Title="South" Height="75" Collapsible="true" runat="server" />
        </Items>
    </ext:Viewport>--%>

            <ext:Panel Region="West" Layout="AccordionLayout" Split="true" Title="Contesti" Width="150" Collapsible="true" runat="server" ID="rContesti" />
            <ext:Panel ID="Panel2" Region="East" Split="true" Title="East" Width="150" Collapsible="true" runat="server" />
    <%--</div>--%>



</asp:Content>
